package ferp.android.social;

import ferp.core.game.Settings;

/**
 * User: igorgok
 * Date: 5/23/13 6:13 PM
 */
public class Post
{
  public static String link(Settings.Locale locale) {return LINK + "&hl=" + locale.code();}

  public String getText(String caption)
  {
    StringBuilder sb = new StringBuilder();

    if (caption != null)
      sb.append(caption).append('\n');

    sb.append(result).append('\n');

    if (message != null && message.length() > 0)
      sb.append(message).append('\n');

    return sb.toString();
  }

  // game result generated by the application
  public String result;
  // user defined message
  public String message;

  // Google Play link
  private static final String LINK = "https://play.google.com/store/apps/details?id=ferp.android";
}
